package partOne;
/**
 * 本类用于进一步练习数组
 * @author Administrator
 *
 */
public class ArraysExct {
    public static void main(String[] args) {
        //1.创建一个数组，用来存放12个月的天数
        int[] month = {31,28,31,30,31,30,31,31,30,31,30,31};

        //数组的遍历
        //2.通过for循环遍历数组
        for (int i=0; i<=month.length-1; i++) {
            System.out.println((i+1)+"月有"+month[i]+"天");
        }

    }

}